(world instanceof Level _lvl${cbi} && _lvl${cbi}.getServer() != null && _lvl${cbi}.getServer().getAdvancements()
    .get(ResourceLocation.parse("${generator.map(field$achievement, "achievements")}")).value().equals(advancement))